//
//  Canal.h
//  SujetObserver
//
//  Created by Thomas Dupont on 05/01/10.
//  Copyright 2010 Greenteam. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "ObserverProtocol.h"
#import "SensorProtocol.h"
#import "SensorData.h"


/*!
    @class       Canal 
    @superclass  NSObject <ObserverProtocol, SensorProtocol>
    @abstract    This class is used as proxy to simulate different spread latency like in network transmission.
    @discussion  This class contain so a speed and a copy of the data it must to send to the real observer
				 To simulate the latency, the Canal wait during update.
				 The sensorData can be observed by the KVO mechanism to be notified of changement on sensorData.
*/
@interface Canal : NSObject <ObserverProtocol, SensorProtocol> {
	NSUInteger speed;
	SensorData* sensorData;
}

@property (assign) NSUInteger speed;
@property (retain) SensorData* sensorData;

@end
